package com.example.firstapp.broadcast

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.example.firstapp.R
import com.example.firstapp.broadcast.bestPractice.LoginActivity
import com.example.firstapp.databinding.ActivityBroadcastBinding
import com.example.firstapp.fragment.fragment1

class broadcastActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_broadcast)

        val binding = ActivityBroadcastBinding.inflate(layoutInflater)
        setContentView(binding.root)

        binding.intent2broadcast1.setOnClickListener {
            intent = Intent(this, broadcast1::class.java)
            startActivity(intent)
        }
        binding.intent2broadcast2.setOnClickListener {
            intent = Intent(this, broadcast2::class.java)
            startActivity(intent)
        }
        binding.intent2broadcast3.setOnClickListener {
            intent = Intent(this, LoginActivity::class.java)
            startActivity(intent)
        }
    }


}